package com.tx.admin.modules.generator.entity;

import com.tx.admin.core.anno.JpaKey;
import com.tx.admin.core.entity.CardEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;

@Entity
@Data
@ApiModel("列")
public class ColumnEntity extends CardEntity {

    @ApiModelProperty("表编号")
    private String tableId;

    @ApiModelProperty("字段名称")
    private String fieldName;

    @ApiModelProperty("字段类型")
    private String fieldType;

    @ApiModelProperty("表单类型")
    @JpaKey(content = true)
    private String formType;

    @ApiModelProperty("查询可视")
    private Boolean openQuery;

    @ApiModelProperty("修改可视")
    private Boolean openSave;

    @ApiModelProperty("表格可视")
    private Boolean openTable;


}
